package cn.wetcland.urban.framework.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class CustomerEvaluationDTO {

    @NotNull(message = "请填入订单ID")
    private Long orderId;

    /**
     * 评价星级 1-5
     */
    @Range(min = 0, max = 5, message = "评价星级 0-5")
    private Integer evaluationStar;

    /**
     * 评价内容
     */
    @NotBlank(message = "请输入评价内容")
    private String evaluationContent;

    /**
     * 评价图片 仅限一张
     */
    private Long evaluationImgId;

}
